package 笔试2.美团.two;

import java.util.Arrays;
import java.util.Scanner;

/*
2
2 1 10
1 2
4 3 37
1 1 2 3
 */
public class shuru {
    static int[] p;
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int T =sc.nextInt();
        for (int t = 0; t < T; t++) {
            int a = sc.nextInt(), b = sc.nextInt(), c = sc.nextInt();
            int tS = c, hav = b, N = a;
            p = new int[N];
            for (int i = 0; i < N; i++) {
                p[i] = sc.nextInt();
            }
            System.out.println(Arrays.toString(p));
        }
    }
}
